import { base } from "./api";
import axios from "./http";
import qs from "qs";

const PROTECTION = {
  // 环保案卷新建
  PROTECTIONADD: params =>
    axios.post(`${base.URL}/bc_hb/insertReportfile`, qs.stringify(params)),
  // 环保案卷查询
  PROTECTIONQUERY: params =>
    axios.get(`${base.URL}/bc_hb/selerReportFileByHandlePeople`, { params }),
  // 环保案卷查询修改
  PROTECTIONEDIT: params =>
    axios.post(`${base.URL}/bc_hb/updateReportfile`, qs.stringify(params)),
  // 举报类型
  REPORTQURRY: params =>
    axios.get(`https://interface.thhy-tj.com/MiniProgram/selectPolluteTypeMenu`, { params }),
  // 添加举报类型
  REPORTADD: params =>
    axios.post(`${base.URL}/bc_hb/insertPollutetype`, qs.stringify(params)),
};

export default PROTECTION;
